home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
AmigActive 10
/
AACD 10.iso
/
AACD
/
Online
/
SpeakFreely
/
src
/
lpc
/
lpc.h
< prev
next >
Wrap
C/C++ Source or Header
|
2000-05-18
|
776b
|
36 lines
/*
* LPC subroutine declarations
*/
#define LPC_FILTORDER 10
#define FRAMESIZE 160
#ifdef OLDCC
#define signed
#define const
#endif
typedef struct {
unsigned short period;
unsigned char gain;
char pad;
signed char k[LPC_FILTORDER];
} lpcparams_t;
/*
* we can't use 'sizeof(lpcparams_t)' because some compilers
* add random padding so define size of record that goes over net.
*/
#define LPCRECSIZE 14
typedef struct {
double Oldper, OldG, Oldk[LPC_FILTORDER + 1], bp[LPC_FILTORDER + 1];
int pitchctr;
} lpcstate_t;
int lpc_start(/*void*/);
void lpc_init(/*lpcstate_t* state*/);
void lpc_analyze(/*const unsigned char *buf, lpcparams_t *params*/);
void lpc_synthesize(/*unsigned char *buf, lpcparams_t *params, lpcstate_t* state*/);
void lpc_end(/*void*/);